﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Romeo.Data
{
    public class CombinedEvaluator : Evaluator
    {
        private Evaluator _Evaluator1;
        private Evaluator _Evaluator2;
        private Evaluator _Evaluator3;

        public CombinedEvaluator (Evaluator aEvaluator1, Evaluator aEvaluator2, Evaluator aEvaluator3)
        {
            _Evaluator1 = aEvaluator1;
            _Evaluator2 = aEvaluator2;
            _Evaluator3 = aEvaluator3;
        }

        public override int Evaluate (Board aBoard, int aMinScore)
        {
            return _Evaluator1.Evaluate (aBoard, aMinScore) + _Evaluator2.Evaluate (aBoard, aMinScore) + _Evaluator3.Evaluate(aBoard, aMinScore);
        }
    }
}
